﻿@{
    ViewBag.Title = "分类列表";
    Layout = "_adminLayout.cshtml";
}
<div class="container">
    <div id="subNav" title="posts" class="float-right">
        <div class="button-group">
            <a href="/sean/posts" class="button button-big">文章管理</a>
            <a href="/sean/categorys" class="button button-big bg-red">分类管理</a>
        </div>
    </div>
    <div id="secNav">
        <div class="button-toolbar">
            <div class="button-group">
                <a class="button" href="javascript:openCategory('/sean/categorys/add','','添加分类')"><i class="icon-plus-square text-blue"></i>添加</a>
            </div>
        </div>
    </div>
    <table class="table table-striped">
        <thead>
            <tr class="current">
                <th>Id</th>
                <th>分类名称</th>
                <th>别名</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.Id</td>
                    <td>@item.CategoryName</td>
                    <td>@item.CategoryFlag</td>
                    <td>
                        <a href="javascript:openCategory('/sean/categorys/edit/','@item.Id','修改分类')" class="button button-little"><i class="icon-edit text-sub"></i>编辑</a>
                        <a href="javascript:del('/sean/categorys/del/@item.Id')" class="button button-little"><i class="icon-trash-o text-red"></i>删除</a>
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
@section scripts{
    <script>
        Do.ready('base','dialog',function() {
            
        });
    </script>
}